<template>
	<view class="czxieyi">
		<view v-html="content"></view>
	</view>
</template>

<script>
	export default {
		data() {
			return {
				content: [],
			}
		},
		onLoad() {
			this.request({
				url: '/xcx/article',
				data: {
					category_id: 4,
				}
			}).then(res => {
				if (res.data.code == 200) {
					this.content = res.data.data[0].content;
				} else {
					uni.showToast({
						title: '请求失败，请稍后再试',
						icon: 'none'
					})
				}
			})
		},
		methods: {
			
		}
	}
</script>

<style lang="scss" scoped>
	.czxieyi{
		width: 100%;
		margin: 0 auto;
		padding: 5% 3%;
		box-sizing: border-box;
		
		view{
			text-indent: 2rem;
			line-height: 46rpx;
			text-align: justify;
			margin-bottom: 10rpx;
		}
	}
</style>